package chess;

import abstractgame.GamePiece;
import abstractgame.GameState;

public class ChessState extends GameState {

	
	/**
	 * Creates a new board
	 * 
	 * @param width
	 *            The width of the board
	 * @param height
	 *            The height of the board
	 */
	public ChessState(int width, int height) {
		super(width, height);
	}
	
	/**
	 * TODO: Remove
	 * Debug update notify observers
	 */
	public void notifyOb(){
		setChanged();
		notifyObservers();
	}

	@Override
	public void addPiece(GamePiece p, int side) {
		if (side == SIDE_WHITE) {
			whitePieces.add(p);
		}
		if (side == SIDE_BLACK) {
			blackPieces.add(p);
		}
		
	}
}
